{% extends "../base.html" %}
{% block css %}{{block.super}}
	<link href="{{APPSTATIC}}css/index.css" rel="stylesheet">
{% endblock %}
{% block main %}
	<h1>{% block page_title %}最新动态{% endblock %}</h1>
	<ul>
	{% for item in articles %}
		<li class="article">
			<div class="top">
				<img src="{{APPSTATIC}}images/avatar-default.png" class="avatar">
				<div class="top-right">
					<div class="nickname">
						<a href="{{APPURL}}user/index?id={{item.author.id}}">{{item.author.getname}}</a>
					</div>
					<div class="time">{{item.update_time|date:"Y-m-d H:i:s"}}</div>
				</div>
			</div>
			<h2 class="title"><a href="{{APPURL}}article/view?id={{item.id}}">{{item.title}}</a></h2>
			<p>{{item.description|slice:"60"}}</p>
			<div class="tags">
				<i class="icon icon-tags"></i>
				{% for tag in item.tagv %}
					<span class="tag">{{tag}}</span>
				{% endfor %}
			</div>
			<div class="nums">
				<i class="icon icon-view"></i> {{item.view_count}}
				<i class="icon icon-comments"></i> {{item.comment_count}}
			</div>
		</li>
	{% endfor %}
	</ul>
{% endblock %}